<div class="prolist">
  <div class="left">
    <%=render :partial=>"pronav",:object=>2 %>
  </div>
  <div class="right">
 
  <%= render :partial=>"pro_list",:object=>@products %>
  </div>
</div>
<%=render :partial=>"sub_menu",:object=>2 %>

<script type="text/javascript">
  $(window).load(function(){
    left=$(".prolist>.left");
    right=$(".prolist>.right");
    if(left.height()>right.height())
    {
      right.height(left.height());
    }
    else
    {
      left.height(right.height());
    }
  }
);
</script>